import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
  {
    title: '登陆账号',
    dataIndex: 'userName',
    width: 200,
  },
  {
    title: '昵称',
    dataIndex: 'nickName',
    width: 200,
  },
  {
    title: '',
    dataIndex: 'userNo',
    width: 200,
  },
  {
    title: '',
    dataIndex: 'certNo',
    width: 200,
  },
  {
    title: '',
    dataIndex: 'certType',
    width: 200,
  },
  {
    title: '',
    dataIndex: 'deptId',
    width: 200,
  },
  {
    title: '头像',
    dataIndex: 'avatar',
    width: 200,
  },
  {
    title: '邮箱',
    dataIndex: 'email',
    width: 200,
  },
  {
    title: '手机号',
    dataIndex: 'mobile',
    width: 200,
  },
  {
    title: '用户类型:platform-平台 isp-服务提供商 dev-自研开发者',
    dataIndex: 'userType',
    width: 200,
  },
  {
    title: '企业ID',
    dataIndex: 'companyId',
    width: 200,
  },
  {
    title: '机构ID',
    dataIndex: 'organizationId',
    width: 200,
  },
  {
    title: '注册IP',
    dataIndex: 'registerIp',
    width: 200,
  },
  {
    title: '注册时间',
    dataIndex: 'registerTime',
    width: 200,
  },
  {
    title: '状态:0-禁用 1-启用 2-锁定',
    dataIndex: 'status',
    width: 200,
  },
  {
    title: '描述',
    dataIndex: 'userDesc',
    width: 200,
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
    width: 200,
  },
  {
    title: '更新时间',
    dataIndex: 'updateTime',
    width: 200,
  },
];

export const searchFormSchema: FormSchema[] = [];

export const formSchema: FormSchema[] = [
  {
    label: '登陆账号',
    field: 'userName',
    component: 'Input',
    required: true,
  },
  {
    label: '昵称',
    field: 'nickName',
    component: 'Input',
    required: true,
  },
  {
    label: '',
    field: 'userNo',
    component: 'Input',
    required: true,
  },
  {
    label: '',
    field: 'certNo',
    component: 'Input',
    required: true,
  },
  {
    label: '',
    field: 'certType',
    component: 'Input',
    required: true,
  },
  {
    label: '',
    field: 'deptId',
    component: 'Input',
    required: true,
  },
  {
    label: '头像',
    field: 'avatar',
    component: 'Input',
    required: true,
  },
  {
    label: '邮箱',
    field: 'email',
    component: 'Input',
    required: true,
  },
  {
    label: '手机号',
    field: 'mobile',
    component: 'Input',
    required: true,
  },
  {
    label: '用户类型:platform-平台 isp-服务提供商 dev-自研开发者',
    field: 'userType',
    component: 'Input',
    required: true,
  },
  {
    label: '企业ID',
    field: 'companyId',
    component: 'Input',
    required: true,
  },
  {
    label: '机构ID',
    field: 'organizationId',
    component: 'Input',
    required: true,
  },
  {
    label: '注册IP',
    field: 'registerIp',
    component: 'Input',
    required: true,
  },
  {
    label: '注册时间',
    field: 'registerTime',
    component: 'Input',
    required: true,
  },
  {
    label: '状态:0-禁用 1-启用 2-锁定',
    field: 'status',
    component: 'Input',
    required: true,
  },
  {
    label: '描述',
    field: 'userDesc',
    component: 'Input',
    required: true,
  },
  {
    label: '创建时间',
    field: 'createTime',
    component: 'Input',
    required: true,
  },
  {
    label: '更新时间',
    field: 'updateTime',
    component: 'Input',
    required: true,
  },
];
